<template>
	<view>
		<web-view v-if="messageDetailsData.type==='News'" :src="messageDetailsData.content.url"></web-view>
		<view class="box">
			<view class="title">
				{{messageDetailsData.content.content}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messageDetailsData: {}
			}
		},
		onLoad(e) {
			console.log(e.data)
			this.messageDetailsData = JSON.parse(decodeURIComponent(e.data))
			wx.setNavigationBarTitle({
				title: this.messageDetailsData.content.title
			})
		},
		methods: {

		}
	}
</script>

<style>

</style>